﻿<%@ Page Language="C#" AutoEventWireup="true"  masterpagefile="~/Admin/Main.master"  title="添加子栏目" validaterequest="false" CodeFile="PageAdd.aspx.cs" Inherits="Admin_PageAdd" %>

<%@ Register TagPrefix="uc" TagName="ContentMenu" Src="~/Admin/ContentMenu.ascx"%>
<%@ Register assembly="DotNetTextBox" namespace="DotNetTextBox" tagprefix="DNTB" %>
<asp:Content ID="Content1" ContentPlaceHolderID="LeftMenu" Runat="Server">
    <uc:ContentMenu ID="ContentMenu" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MidContent" Runat="Server">
  <div id="mainMenu">
  	<ul>
		<li>
            <asp:HyperLink ID="PageLink" runat="server">栏目内容</asp:HyperLink>
        </li>
		<li><a href="PageAdd.aspx">添加子栏目</a></li><li><a href="PageList.aspx">子栏目列表</a></li><li><a href="PageEdit.aspx">子栏目内容</a></li></ul>
  </div>
   <div id="main">
   <asp:Label id="Msg" runat="server" Text="" CssClass="msg" Visible="False"></asp:Label>
    <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D7D7D7">
      <tr>
        <td colspan="2" bgcolor="#FFFFFF" class="mainTitle">
            "<asp:Label ID="MenuName" runat="server" ForeColor="Black"></asp:Label>" 添加子栏目&nbsp;</td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF" class="mainContentLeftTd" >
            所属父栏目:    
        </td>
        <td bgcolor="#FFFFFF" class="mainContentRightTd">
            <asp:DropDownList ID="ParentIdList" runat="server">
            </asp:DropDownList></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF" >
            子栏目标题:</td>
        <td bgcolor="#FFFFFF" >
            <asp:TextBox ID="PageTitle" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="PageTitle"
                Display="Dynamic" ErrorMessage="子栏目标题必须填写"></asp:RequiredFieldValidator></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF" >
            子栏目标识:</td>
        <td bgcolor="#FFFFFF">
            <asp:TextBox ID="FileName" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="FileName"
                Display="Dynamic" ErrorMessage="子栏目标识必须填写"></asp:RequiredFieldValidator>
            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="FileName"
                Display="Dynamic" ErrorMessage="必须为小写字母或下划线组成" ValidationExpression="[a-z_]{0,30}"></asp:RegularExpressionValidator>
            <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="FileName"
                Display="Dynamic" ErrorMessage="此标识已经存在" OnServerValidate="CustomValidator1_ServerValidate"></asp:CustomValidator></td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF" >
            子栏目内容:</td>
        <td bgcolor="#FFFFFF">&nbsp;
            </td>
      </tr>
      <tr>
        <td colspan="2" align="left"  bgcolor="#ffffff" >
            <div class="mainNoLeftTd">
                <DNTB:WebEditor ID="PageContent" runat="server" Width="95%" Height="300px" MenuConfig="all_3row.config" />
            </div>
        </td>
      </tr>
      <tr>
        <td align="right" bgcolor="#FFFFFF" ></td>
        <td bgcolor="#FFFFFF" >&nbsp;<asp:Button ID="Add" runat="server" Text="添加栏目" CssClass="inputBt" OnClick="Add_Click"  /></td>
      </tr>
    </table>
  </div>
  <script language="JavaScript" type="text/javascript" >
        topMenuThisPage(2);//当前位置顶部菜单标识
        contentSubMenuThisPage();//当前位置左侧菜单标识
        mainMenuThisPage(2);//当前选项卡标识
  </script>
</asp:Content>